package com.ruoyi.pg.logInfo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.pg.logInfo.domain.PgLoghis;
import com.ruoyi.pg.logInfo.vo.PgLoghisVo;
import com.ruoyi.pg.logInfo.mapper.PgLoghisMapper;
import com.ruoyi.pg.logInfo.service.IPgLoghisService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 登录记录Service业务层处理
 *
 * @author Ming
 * @date 2025-08-22
 */
@Service
public class PgLoghisServiceImpl extends ServiceImpl<PgLoghisMapper, PgLoghis> implements IPgLoghisService {

    @Override
    public TableDataInfo<PgLoghisVo> queryList(PgLoghisVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<PgLoghisVo> queryAll(PgLoghisVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public PgLoghisVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
